<ul class="layui-nav" lay-filter="">
    <li class="layui-nav-item"><a href="">Forrest聚会管理系统</a></li>
    <li class="layui-nav-item"><a href="/community">社区</a></li>

    #if(manager)
    <li class="layui-nav-item"><a href="/party">查看聚会</a></li>
    <li class="layui-nav-item">
        <form method="post" action="/community/search" class="layui-form" style=" padding: 0 20px;">
            <label for="search-">搜索：</label>
            <input id="search-" type="text" name="search" class="layui-input-inline" style="height: 25px">
            <button type="submit" class="layui-btn layui-btn-small">搜索</button>
        </form>
    </li>
    <li class="layui-nav-item right margin">
        <a href="javascript:">#(username)</a>
        <dl class="layui-nav-child">
            <dd><a href="/user">个人资料</a></dd>
            <dd><a href="/user/party">我的聚会</a></dd>
            <dd><a href="/party/manage">聚会管理</a></dd>
            <dd><a href="/login/logOut">退出</a></dd>
        </dl>
    </li>
    <li class="layui-nav-item right">
        <a><img src="/img/userimg/#(user.avator)" class="avator-nav"></a>
    </li>
    #elseif(user)
    <li class="layui-nav-item"><a href="/party">查看聚会</a></li>
    <li class="layui-nav-item">
        <form method="post" action="/community/search" class="layui-form" style=" padding: 0 20px;">
            <label for="search-">搜索：</label>
            <input id="search-" type="text" name="search" class="layui-input-inline" style="height: 25px">
            <button type="submit" class="layui-btn layui-btn-small">搜索</button>
        </form>
    </li>
    <li class="layui-nav-item right margin">
        <a href="javascript:">#(username)</a>
        <dl class="layui-nav-child">
            <dd><a href="/user">个人资料</a></dd>
            <dd><a href="/user/party">我的聚会</a></dd>
            <dd><a href="/login/logOut">退出</a></dd>
        </dl>
    </li>
    <li class="layui-nav-item right">
        <a><img src="/img/userimg/#(user.avator)" class="avator-nav"></a>
    </li>
    #else
    <li class="layui-nav-item">
        <form method="post" action="/community/search" class="layui-form" style=" padding: 0 20px;">
            <label for="search-">搜索：</label>
            <input id="search-" type="text" name="search" class="layui-input-inline" style="height: 25px">
            <button type="submit" class="layui-btn layui-btn-small">搜索</button>
        </form>
    </li>
    <li class="layui-nav-item right"><a href="/register">注册</a></li>
    <li class="layui-nav-item right"><a href="/login">登录</a></li>
    #end
</ul>